package com.cyh.testdesignpattern.chain;

//审批人
public abstract class Approver {
    Approver approver; //下一个审批人
    String name;

    public Approver(String name) {
        this.name = name;
    }

    //设置下一个审批人
    public void setApprover(Approver approver) {
        this.approver = approver;
    }

    //处理审批请求的方法
    public abstract void processRequest(PurchaseRequest purchaseRequest);
}
